package com.hzdl.hotel.mapper;

import com.hzdl.hotel.bean.Check;
import com.hzdl.hotel.bean.Customer;
import com.hzdl.hotel.bean.GuestRoom;
import com.hzdl.hotel.bean.RoomBook;
import com.hzdl.hotel.vo.CheckVo;
import com.hzdl.hotel.vo.GuestRoomVo;
import com.hzdl.hotel.vo.RoomBookVo;

import java.util.List;

public interface RoomMapper {
    List<GuestRoom> findRoomByWhere(GuestRoomVo grv);
    int insertRoom(GuestRoomVo grv);
    int updateRoom(GuestRoomVo grv);
    int deleteRoom(Integer hId);
    List<Check> findCustomer(String loginName);
    Check findByHId(Integer hId);
    int returnRoom(Integer hId);
    int insertRoomCheckInfo(CheckVo checkVo);
    int orderRoom(Integer hId1);
    int updateRoomCheckInfo(CheckVo checkVo);
    GuestRoom findRoomByHId(Integer hId);
    Customer findCustomerByLoginName(String loginName);

    List<RoomBook> findAllRoom(RoomBookVo roomBookVo);

    Check findCustomer1(CheckVo checkVo);

    Check findCustomer2(CheckVo checkVo);
}
